﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>

<script type="text/javascript">
		var curtab = "treatment";
		function swapTab(tab,type)
		{
             var ctrl = _$("ui-" + curtab);
			 ctrl.style.display = 'none';
			 ctrl = _$("ui-" + tab);
			 ctrl.style.display = 'block';
			 curtab = tab;
			 _$("searchtype").value = type ;
		}
		
        function checkform()
        { 
            var str ="";           
            switch(parseInt(_$("searchtype").value))
            {
                case 1:
                    str="trmname="+_$("trmname").value.escUrl();
                    break ;
                case 2:
                    str="dszid="+_$("dszid").options[_$("dszid").selectedIndex].value;
                    break ;                    
            }
            location.href = "/Pages/Alpha/TreatmentList.aspx?"+str;
        }
 </script>

<div class="layout-cols2">
	
	<div class="col1">
	    
                 		
                <%csharp%>TempUrl = ModuleCtrl.Header4("PrescriptionList","中药列表",false,false); <%/csharp%>
                {TempUrl}

				<%csharp%> if(DiseasePrescriptionStatList.Count == 0){ <%/csharp%>

				    <div class="content">
				<p><b>没有中药方剂信息!!</b></p>
				</div>

				<%csharp%> } else { <%/csharp%>
				
				   <ul class="topicsort">
				   <%csharp%>TempUrl = "/TreatmentAll.aspx";<%/csharp%>
                    <li onmouseover="this.className='topicsort_on'" onmouseout="this.className=''"><a href="{this.GetUrl(TempUrl)}" >西药</a></li>
                    <li onmouseover="this.className='topicsort_on'" onmouseout="this.className=''"><a href="#"><font color="red">中药</font></a></li>

                    </ul>	
				
				<table border="0" cellpadding="0" cellspacing="0" class="plist">
	                   <tr style="height:30px;"> 
                            <td width="40%" height="26"><b class="tdtitle">疾病名词</b></td>
                            <td width="20%" align="center"><b class="tdtitle">中药方剂数</b></td>
                            <td width="40%" align="center"><b class="tdtitle">&nbsp;</b></td>
                       </tr>
				<%csharp%>
				string str="tr_bgcolor_0";
				foreach(DiseasePrescriptionStat item in DiseasePrescriptionStatList) { <%/csharp%>
					<tbody>
					    <tr height="60" class="{str}">
						    <td><font color="green">{item.DiseaseName}</font></td>
						    <td align="center">{item.PrescriptionsCount}</td>
						    <%csharp%>TempUrl = "/DoctorList.aspx?diseaseid=" + item.DiseaseId; <%/csharp%>
						    <td align="right"><a href="{this.GetUrl(TempUrl)}" class="viewdetail1"><font color=Green>查看具体方剂</font></a></td>
						</tr>
					</tbody>
					<%csharp%>
					if(str=="tr_bgcolor_0") str="tr_bgcolor_1";
					else str="tr_bgcolor_0";
					}<%/csharp%>
				</table>				
				<%csharp%> } <%/csharp%>

            <%csharp%>TempUrl = ModuleCtrl.Footer("PrescriptionList"); <%/csharp%>
            {TempUrl}	
		
<!--		<div class="box">
			<div class="content">
				<div class="pages">
					{TreatmentPagingString}
				</div>
			</div>
		</div>-->
		
		
	</div>
	
	<div class="col2">
	    <%template _BestFitPatientsByTreatments%>
	    <%template _MostFrequentUsedTreatmentsOfDisease%>
        <%template _TopicHottest%>
	</div>
		
</div>

<%template _footer%>		